package Code.ExtendDemo.Test3;

public class Test {
    public static void main(String[] args) {
        //创建经理对象
        Manager manager = new Manager("001","李四",10000,6000);
        System.out.println(manager.getId()+","+manager.getName()+","+manager.getSalary()+","+manager.getBons());

        manager.eat();
        manager.wwork();

        //创建员工对象
        Worker worker = new Worker();
        worker.setId("002");
        worker.setName("李四");
        worker.setSalary(10000);
        System.out.println(worker.getId()+","+worker.getName()+","+worker.getSalary());

        worker.eat();
        worker.wwork();
    }
}
